package cn.xuchunh.campusbbs.ui.activities;

import android.content.Context;
import android.content.Intent;

import cn.xuchunh.campusbbs.R;
import cn.xuchunh.campusbbs.ui.fragments.SettingFragment;

/**
 * Created by XuChunH on 2015/10/9.
 */
public class SettingActivity extends FragmentContainerActivity<SettingFragment> {

    public static void launch(Context context) {
        Intent intent = new Intent(context, SettingActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected SettingFragment getFrament() {
        return new SettingFragment();
    }

    @Override
    protected int containerId() {
        return R.id.container;
    }

    @Override
    protected int createContentRes() {
        return R.layout.layout_simple_container;
    }

    @Override
    protected void beforeInitView() {
        setShowHomeUp(true);
        setContainerId(R.id.container);
        setTitle(R.string.settings);
    }
}
